package com.me.exbean.util;

import com.lcx.annotation.IOCValue;
import com.lcx.annotation.JsObject;
import javafx.scene.input.Clipboard;
import javafx.scene.input.ClipboardContent;


@IOCValue
@JsObject(name = "clipBoard")
public class ClipBoardUtil {

    @JsObject
    public void setText(String str){
        Clipboard clipboard = Clipboard.getSystemClipboard();
        ClipboardContent content = new ClipboardContent();
        content.putString(str);
        clipboard.setContent(content);
    }

}
